Weird that it doesn't work. Perhaps a combination of a angles and viewangles would've worked, but then again face or turn would work either way.
Weird that it doesn't work. Perhaps a combination of a angles and viewangles would've worked, but then again face or turn would work either way.
why the facing is not working for me?
local.trig = spawn trigger_multiple
local.trig targetname spawn1
local.trig.origin = ( -484 -610 42 ) //e1 corner big room
local.trig setsize ( -200 -200 0 ) ( 200 200 0 )
$spawn1 waittill trigger
local.player = parm.other
local.player tele ( -206 -871 -135.88 )
local.player face ( 7.93 135.14 0.00 )
$spawn1 remove
wait .1
thread spawn1
it doesnt face the direction i pointed to.. also tried the local.player.angles = ( 7.93 135.14 0.00 )
angles won't work because it doesn't change the required info to gclient.PHP Code:local.trig = spawn trigger_multiple
local.trig targetname spawn1
local.trig.origin = ( -484 -610 42 ) //e1 corner big room
local.trig setsize ( -200 -200 0 ) ( 200 200 0 )
while( 1 )
{
$spawn1 waittill trigger
local.player = parm.other
local.player.origin = ( -206 -871 -135.88 )
local.player.viewangles = ( 7.93 135.14 0.00 )
}
Last edited by Ley0k; November 29th, 2014 at 05:03 PM.
pacrac fixed it by making it like this
thanks pacCode:spawn1: local.trig = spawn trigger_multiple local.trig targetname spawn1 local.trig.origin = ( -484 -610 42 ) //e1 corner big room local.trig setsize ( -200 -200 0 ) ( 200 200 0 ) $spawn1 waittill trigger local.player = parm.other local.player tele ( -206 -871 -135.88 ) wait 0.3 local.player face ( 7.93 135.14 0.00 ) $spawn1 remove wait .1 thread spawn1
Hi Slim,
I'm using a WHILE loop for my teleports so the script isn't constantly creating and destroying triggers.
This is an example of one of my teleports in Southern France, try it and see if it works for you:
This has always worked for me.Code:port1: local.fx = spawn script_model model "fx/corona_red.tik" origin ( 1056.04 1950 518.13 ) scale 1.5 local.trig = spawn trigger_use origin local.fx.origin local.trig setsize ( -10 -10 0 ) ( 10 10 70 ) while(1) { local.trig waittill trigger local.player = parm.other local.player tele ( 1422 860 815.12 ) local.player face ( 0 180 0 ) local.fx hide wait 2 local.fx show } end
You're welcome m8
Not much to change there besides give the player time to spawn after teleport.![]()